package com.itbaizhan.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author spf
 * @date 2024/3/12
 * @time 14:14
 */

@RefreshScope
@RestController
public class ConfigController {

    @Value("${cloud.nacos}")
    private String nacos;

    @GetMapping("/config")
    public String config(){
        return  nacos;
    }
}
